package top.tangyh.lamp.care.common;

public enum ExeYaoSortFieldEnum {
    /**
     * 计划事件
     */
    PLAN_TIME("planTime", "plan_time"),
    EXE_TIME("exeTime", "exe_time"),
    ST("ST", "st");

    private String sortName;

    private String sortField;

    ExeYaoSortFieldEnum(String sortName, String sortField) {
        this.sortName = sortName;
        this.sortField = sortField;
    }

    public static ExeYaoSortFieldEnum forValue(String sortName) {
        for (ExeYaoSortFieldEnum value : values()) {
            if (value.getSortName().equals(sortName)) {
                return value;
            }
        }
        return null;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }
}
